<?php
session_start();
ob_start();
$_SESSION['CTDT']=$_GET['madt'];
$iid = $_SESSION['CTDT'];
 	include "dbcon.php";
   $SLX = 0;
   $SLX = mysql_query("select solanxem from sanpham where MaSP =$iid ");
   while($row = mysql_fetch_array($SLX))
   {
   	$SLX = $row[0];
	$SLX +=1;
   }
mysql_query("update sanpham set solanxem = $SLX where MaSP = $iid ");
header("location:chitietDT.php");
ob_clean();
exit();
?> 
